﻿<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="AddNewContact.aspx.vb" Inherits="WebPhonebook.AddNewContact" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    Welcome to the Add New Contact Page
        <br />
        <br />
        First Name<br />
        <asp:TextBox ID="fname" runat="server"></asp:TextBox>
        <br />
        * Last Name<br />
        <asp:TextBox ID="lname" runat="server"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
            ControlToValidate="lname" ErrorMessage="Reuired Field" ForeColor="Red"></asp:RequiredFieldValidator>
        <br />
        Cell<br />
        <asp:TextBox ID="cell" runat="server"></asp:TextBox>
        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
            ControlToValidate="cell" ErrorMessage="Phone Number Must be: xxx-xxx-xxxx" 
            ForeColor="Red" ValidationExpression="((\(\d{3}\) ?)|(\d{3}-))?\d{3}-\d{4}"></asp:RegularExpressionValidator>
        <br />
        <br />
        ID<br />
        <asp:TextBox ID="IDTextbox" runat="server" ReadOnly="True"></asp:TextBox>
        <br />
        <br />
        <asp:Button ID="Add" runat="server" style="text-align: left" Text="Submit" />
        <br />
        <br />
        <br />
        <asp:Label ID="Message" runat="server"></asp:Label>
    </div>
    </form>
</body>
</html>
